<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" href="/css/element.css">
    <link rel="stylesheet" href="/editor/css/style.css" />
    <link rel="stylesheet" href="/editor/css/editormd.css" />
    <script src="/editor/js/jquery.min.js"></script>
    <script src="/editor/js/editormd.min.js"></script>
    <#include "/include/commonjs.html">
    <title>内容新建</title>
</head>
<body>
<div id="app">
    <div>
        <div style="padding: 20px">
            <div>
                <div>
                    <h2>${title}</h2>
                </div>
                <el-button-group style="display: inline">
                    <el-button type="primary" size="mini" @click="openurl" icon="el-icon-edit" >编辑</el-button>
                    <el-button type="primary" size="mini" icon="el-icon-share"></el-button>
                    <el-button type="primary" size="mini" icon="el-icon-delete"></el-button>
                </el-button-group>
                <div>
                    <el-table
                            size="small"
                            border
                            :data="tableData"
                            style="width: 100%">
                        <el-table-column
                                type="selection"
                                width="55">
                        </el-table-column>
                        <#list tables as item>
                        ${item}
                    </#list>
                    </el-table>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/javascript">
    var testEditor;

    var Main = {
        extends: global,
        data() {
            return{
                model:${model},
                list:[],
                tableData:${array},
                activeIndex: '2',
                activeIndex2: '2',
                formLabelWidth:'120px',
                restaurants: [],
                state: '',
                select: '',
                data: [],
                form:{}
            }
        },
        created(){
        },
        methods: {
            openurl(){
                window.open('${updateurl}')
            },
            handleChange_channel(val){
                this.form.channelId=val;
            },
            handleSelect(key, keyPath) {
                console.log(key, keyPath);
            },
        }
    }
    var Ctor = Vue.extend(Main)
    new Ctor().$mount('#app')

</script>
</body>
</html>